<?php

/**
 * Created by PhpStorm.
 * Author: netman
 * Time: 2023/10/12 17:08
 * Desc:供应商店铺
 */
class Request_Api_V2_Supplier_Shop extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);
    }

    public function get_shop_config()
    {
        $this->rules = [
            ['supplier_id', ['not_empty', 'digit', $this->rule_min(1)]],
        ];
        return $this;
    }

    public function get_product_list()
    {
        $this->rules = [
            ['supplier_id', ['not_empty', 'digit', $this->rule_min(1)]],
            ['pinyin', ['not_empty']],
            ['table', ['not_empty']],
            ['page', ['not_empty', 'digit', $this->rule_min(1)]],
            ['pagesize', ['not_empty', 'digit', $this->rule_min(1)]],
            ['type_id', ['not_empty', 'digit', $this->rule_min(1)]],
        ];
        return $this;
    }


}